package com.byxy.ssm.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.ssm.demo.dao.ItemsDao;
import com.byxy.ssm.demo.entity.Items;
import com.byxy.ssm.demo.service.ItemsService;

@Service
@Transactional
public class ItemsServiceImpl implements ItemsService {

	@Autowired
	private ItemsDao itemDao;
	@Override
	public void save(Items item) {
		itemDao.save(item);
	}
	@Override
	public List<Items> findAll() {
		return itemDao.find();
	}

}
